<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="/yingji/Public/assets/css/bs3/dpl.css" rel="stylesheet" type="text/css" />
<link href="/yingji/Public/assets/css/bs3/bui.css" rel="stylesheet" type="text/css" />
<link href="/yingji/Public/assets/css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">

button {
	margin-right:20px;
}

.button-tabs li {
	float:left;
	margin:0px 20px;
}

.control-group .controls{
	float:none;
	margin-bottom:20px;
}

.controls .con{
	width:90%;
	margin:20px auto 20px 100px;
	height:auto;
	line-height:50px;
	font-size:18px;
	word-wrap: break-word; 
	word-break: normal;
	color:#fff;
}

.controls .cons{
	width:85%;
	margin:-20px auto 20px 140px;
	height:auto;
	min-height:30px;
	line-height:30px;
	font-size:18px;
	word-wrap: break-word; 
	word-break: normal;
	overflow:hidden;
	color:#fff;
}

#tabbox {
	width:100%;
	overflow:hidden;
	margin:0 auto;
}

.tabs {
	width: 100%;
	height: 32px;
	margin-bottom:10px;
	margin-top:20px;
}

.tabs li {
	float:left;
	height:31px;
	line-height:31px;
	border:1px solid #EAEAEA;
	margin-bottom: -1px;
	background: #5bc0de;
	position: relative;
	border-radius:5px;
	margin:0px 15px;
	padding:0px 10px;
	color:#ffffff;
	font-size:16px;
}

.controls .con{
	width:85%;
	margin:20px auto 20px 130px;
	height:auto;
	line-height:30px;
	word-wrap: break-word; 
	word-break: normal;
}

</style>
</head>
<body>
<div class="demo-content" style="margin-top:1%;">
	<div class="row" style="width:90%; margin:0px auto;">
    	<div style="text-align:center">
        	<h2>
            <?php echo ($tid); ?>
            <?php if($nid == title): ?>—— 演练展示<?php endif; ?>
            <?php if($nid == titles or $nid == department): ?>—— 场景展示<?php endif; ?>
            <?php if($nid == report): ?>—— 总结报告<?php endif; ?>
           	</h2><hr>
        </div>
        <div id="panel" class="" style="padding:10px;">
			<?php if($bid == 'scripts' and $nid != 'title' and $nid != 'department' and $nid != 'pic'): ?><div class="control-group">
				<div class="controls">
					<div class="con">
						<audio controls src='<?php echo U("Home/Drill/voice",array("sid"=>I("get.sid"),"pid"=>I("get.pid"),"bid"=>I("get.bid"),"nid"=>I("get.nid"),"tid"=>I("get.tid")));?>'></audio>
						<pre><?php echo ($scripts); ?></pre>
					</div>
				</div>
			</div><?php endif; ?>
                        
			<?php if($bid == 'scripts' and $nid == 'department' and $k == ''): ?><div class="control-group" style="float:left;">
				<div class="controls">
					<div id="tabbox">
                    <ul class="tabs" id="tabs">
					<?php if(is_array($department)): $i = 0; $__LIST__ = $department;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><?php echo ($vo); ?></li><?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                    </div>
				</div>
			</div><?php endif; ?>
            
            <?php if($bid == 'scripts' and $nid == 'department' and $k != ''): if(is_array($department)): $i = 0; $__LIST__ = $department;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="control-group" style="float:left;">
				<div class="controls">
                	<div id="tabbox">
                    <ul class="tabs" id="tabs">
                    	<li <?php if(is_array($departments)): $i = 0; $__LIST__ = $departments;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vos): $mod = ($i % 2 );++$i; if($vos == $vo): ?>style="background:#f0ad4e; font-weight:bold"<?php endif; endforeach; endif; else: echo "" ;endif; ?>><?php echo ($vo); ?></li>
                    </ul>
                    </div>
				</div>
			</div><?php endforeach; endif; else: echo "" ;endif; endif; ?>
                        
			<?php if($bid == 'scripts' and $nid == 'pic'): if(is_array($pic)): $i = 0; $__LIST__ = $pic;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="control-group">
				<div class="controls">
					<div class="con">
						<?php if($vo["ext"] == 'jpg' or $vo["ext"] == 'png' or $vo["ext"] == 'gif'): ?><img src="/yingji/<?php echo ($vo["pic"]); ?>" width="300"/><?php endif; ?>
					</div>
 				</div>
            </div><?php endforeach; endif; else: echo "" ;endif; endif; ?>
                                                
			<?php if($bid == 'scene' and $nid == 'titles'): ?><div class="form-horizontal">
				<div class="control-group">
					<div class="controls">
						<label class="control-label"><h3>场景名称</h3></label>
						<div class="controls">
							<div class="cons"><?php echo ($scene["scenename"]); ?></div>
						</div>
					</div>
				</div>
                <div class="control-group">
					<div class="controls">
						<label class="control-label"><h3>场景事件</h3></label>
                        <div class="controls">
							<audio controls src='<?php echo U("Home/Drill/voice",array("sid"=>I("get.id"),"pid"=>I("get.pid"),"bid"=>"scene","nid"=>"brief","tid"=>"场景事件"));?>'></audio>
						</div>
						<div class="controls">
							<div class="con"><pre><?php echo ($scene["brief"]); ?></pre></div>
						</div>
					</div>
				</div>
                <div class="control-group">
					<div class="controls">
						<label class="control-label"><h3>多媒体文件</h3></label>
						<?php if(is_array($pic)): $i = 0; $__LIST__ = $pic;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><div class="controls">
							<?php if($v["ext"] == 'jpg' or $v["ext"] == 'png' or $v["ext"] == 'gif'): ?><div class="con">
								<img src="/yingji/<?php echo ($v["pic"]); ?>" width="300"/>
							</div><?php endif; ?>
                            <?php if($v["ext"] == 'mp4'): ?><div class="con">
							<video id="video1" controls width="420" style="margin-top:15px;">
								<source src="/yingji/<?php echo ($v["pic"]); ?>" type="video/mp4" />
							</video>
                            </div><?php endif; ?>
						</div><?php endforeach; endif; else: echo "" ;endif; ?>
					</div>
				</div>
                <div class="control-group">
					<div class="controls">
						<label class="control-label"><h3>响应提示</h3></label>
                        <div class="controls">
                            <audio controls src='<?php echo U("Home/Drill/voice",array("sid"=>I("get.id"),"pid"=>I("get.pid"),"bid"=>"scene","nid"=>"hint","tid"=>"响应提示"));?>'></audio>
						</div>
						<div class="controls">
							<?php if(is_array($hint)): $k = 0; $__LIST__ = $hint;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><div class="controls">
                            	<div class="con"><?php echo ($vo); ?></div>
                            </div><?php endforeach; endif; else: echo "" ;endif; ?>
						</div>
					</div>
				</div>
			</div><?php endif; ?>
            
            <?php if($bid == 'scene' and $nid == 'department'): ?><div class="control-group">
				<div class="controls">					
					<?php if(is_array($hint)): $i = 0; $__LIST__ = $hint;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="controls">
						<label class="control-label" style="margin-top:20px;"><h3><?php echo ($vo["department"]); ?></h3></label>
						<div class="controls" style="margin-top:20px;">
							<?php if($vo["voice"] != ''): ?><audio controls src='/yingji/<?php echo ($vo["voice"]); ?>'></audio><?php endif; ?>
							<?php if($vo["hint"] != ''): ?><div class="con"><pre><?php echo ($vo["hint"]); ?></pre></div><?php endif; ?>
						</div>
					</div><?php endforeach; endif; else: echo "" ;endif; ?>
				</div>
			</div><?php endif; ?>
            
            <?php if($bid == 'scene' and $nid == 'report'): ?><div class="control-group">
				<div class="controls">					
					<?php if(is_array($report)): $i = 0; $__LIST__ = $report;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="controls">
						<label class="control-label" style="margin-top:20px;"><h3><?php echo ($vo["department"]); ?></h3></label>
						<div class="controls" style="margin-top:20px;">
							<?php if($vo["voice"] != ''): ?><audio controls src='/yingji/<?php echo ($vo["voice"]); ?>'></audio><?php endif; ?>
							<?php if($vo["hint"] != ''): ?><div class="con"><pre><?php echo ($vo["hint"]); ?></pre></div><?php endif; ?>
						</div>
					</div><?php endforeach; endif; else: echo "" ;endif; ?>
				</div>
			</div><?php endif; ?>
		</div>
	</div>
</div>
<script type="text/javascript" src="/yingji/Public/assets/js/jquery-1.8.1.min.js"></script>
<script src="/yingji/Public/assets/js/bui/sea.js"></script>
<script src="/yingji/Public/assets/js/bui/config.js"></script>
<script type="text/javascript" src="/yingji/Public/assets/js/Validform_v5.3.2_min.js"></script>
</body>
</html>